import { TestCh5 } from "./TestApp";

function ch5(){
    let canvas = document.getElementById("canvas") as HTMLCanvasElement
    let app = new TestCh5(canvas);

    let startButton = document.getElementById("start") as HTMLButtonElement;

    startButton.onclick = () => {
        app.start()
    }
    let stopButton = document.getElementById("stop") as HTMLButtonElement;

    stopButton.onclick = () => {
        app.stop();
    }
}

export{
    ch5
}